﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HS {
    class Weapon {
        /*Atributos*/
        /***********************************************************************************/
        private char sortWeapon;
        private int cost;
        private int damage;

        /*Constructores*/
        /***********************************************************************************/
        public Weapon() {
            setDamage(20);
        }
        public Weapon(char sortWeapon, char tipoSoldado) {
            //Por el momento se está asumiendo que solo hay un tipo de arma por cada Soldado es decir: TipoArma= '1'
            this.sortWeapon = sortWeapon;
            
            if ((tipoSoldado == 'p') || (tipoSoldado == 'P')) {
                this.cost = 50;
                this.damage = 20;
            }
            if ((tipoSoldado == 'f') || (tipoSoldado == 'F')) {
                this.cost = 80;
                this.damage = 50;
            }
            if ((tipoSoldado == 'b') || (tipoSoldado == 'B')) {
                this.cost = 100;
                this.damage = 30;
            }
        }


        /*Metodos Sets y Gets*/
        /***********************************************************************************/
        public char getSortWeapon() {
            return sortWeapon;
        }
        public void setSortWeapon(char sortWeapon) {
            this.sortWeapon = sortWeapon;
        }
        public int getCost() {
            return cost;
        }
        public void setCost(int cost) {
            this.cost = cost;
        }
        public int getDamage() {
            return damage;
        }
        public void setDamage(int damage) {
            this.damage = damage;
        }

        
    }

}